const Book = {
  state: {
    fileName: '',
    operationToggle: true
  },
  mutations:{
    'SET_FILENAME':(state,newData)=>{
      state.fileName = newData;
    },
    'SET_OPERATION_TOGGLE':(state,newData)=>{
      state.operationToggle = newData;
    }
  },
  actions:{
    setFileName:({commit},newData)=>{
      return commit('SET_FILENAME',newData);
    },
    setOperationToggle:({commit},newData)=>{
      return commit('SET_OPERATION_TOGGLE',newData);
    }
  }
};

export default Book;
